#include <header.h>
void func(int num){
	printf("i am fun\n");
}
#define __USE_POSIX199309
int main(int argc, char *argv[]){
	struct sigaction act, old;
	memset(&act, 0, sizeof act);
	memset(&old, 0, sizeof old);

	act.sa_handler = func;
	sigaction(2, &act, &old);
	
	char buf[1 << 10] = {0};
	int res = read(STDIN_FILENO, buf, sizeof buf);
	printf("res:%d", res);
	return 0;
}

